JavaScript

listObj.harvestListRow Method

Syntax

listObj.harvestListRow([zeroBasedRowNum]);

Arguments

zeroBasedRowNumnumber

The row to harvest.

Returns

resultJSON object

Returns a JSON object that contains the data in the specified row. If no row is specified, returns the data in the current row.

_oldDataJSON object

If the row is an existing row, this property contains the original values for the row.

Description

Gets a JSON object of the data in the row. If row is an existing row, the object includes an _oldData object with the original values in the row. If the optional row number is not passed in, the current row is harvested.

Example

var listObj = {dialog.object}.getControl("LIST1");

if (listObj) {
    var data = listObj.harvestListRow();
}

Limitations

List Control with Detail View Part

See Also